package com.haruhinav.controller;

import com.haruhinav.entity.DefaultFace;
import com.haruhinav.service.DefaultFaceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/defaultface")
public class DefaultFaceController {

    @Resource
    private DefaultFaceService defaultFaceService;
    //    所有默认头像
    @GetMapping("/a/list")
    public List<DefaultFace> queryDefaultFace(){
        return defaultFaceService.queryDefaultFace();
    }

}
